count even and odd array elements using C